package com.slkj.shilixiaoyuanapp.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created  on 2018-08-27
 *
 * @author 唐开阔
 * @describe
 */

public class BxDetailEntity implements Parcelable {




    private String intime;
    private ArrayList<PeopleEntity> auditor;
    /**
     * images : ["http://47.106.8.136:8082/images/school3/auditRepair/1535341249494.jpg"]
     * costDate : Aug 27, 2018 12:00:00 AM
     * auditReimbursementId : 136
     * id : 26
     * state : 0
     * body : 。。。
     * type : 3
     * urge : false
     */

    private String costDate;
    private int auditReimbursementId;
    private int id;
    private int state;
    private String body;
    private int type;
    private boolean urge;
    private List<String> images;
    private String refute;
    private int myState;

    protected BxDetailEntity(Parcel in) {
        intime = in.readString();
        auditor = in.createTypedArrayList(PeopleEntity.CREATOR);
        costDate = in.readString();
        auditReimbursementId = in.readInt();
        id = in.readInt();
        state = in.readInt();
        body = in.readString();
        type = in.readInt();
        urge = in.readByte() != 0;
        images = in.createStringArrayList();
        refute = in.readString();
        myState = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(intime);
        dest.writeTypedList(auditor);
        dest.writeString(costDate);
        dest.writeInt(auditReimbursementId);
        dest.writeInt(id);
        dest.writeInt(state);
        dest.writeString(body);
        dest.writeInt(type);
        dest.writeByte((byte) (urge ? 1 : 0));
        dest.writeStringList(images);
        dest.writeString(refute);
        dest.writeInt(myState);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<BxDetailEntity> CREATOR = new Creator<BxDetailEntity>() {
        @Override
        public BxDetailEntity createFromParcel(Parcel in) {
            return new BxDetailEntity(in);
        }

        @Override
        public BxDetailEntity[] newArray(int size) {
            return new BxDetailEntity[size];
        }
    };

    public int getMyState() {
        return myState;
    }

    public void setMyState(int myState) {
        this.myState = myState;
    }

    public String getCostDate() {
        return costDate;
    }

    public void setCostDate(String costDate) {
        this.costDate = costDate;
    }

    public int getAuditReimbursementId() {
        return auditReimbursementId;
    }

    public String getIntime() {
        return intime;
    }

    public void setIntime(String intime) {
        this.intime = intime;
    }

    public ArrayList<PeopleEntity> getAuditor() {
        return auditor;
    }

    public void setAuditor(ArrayList<PeopleEntity> auditor) {
        this.auditor = auditor;
    }

    public String getRefute() {
        return refute;
    }

    public void setRefute(String refute) {
        this.refute = refute;
    }

    public void setAuditReimbursementId(int auditReimbursementId) {
        this.auditReimbursementId = auditReimbursementId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isUrge() {
        return urge;
    }

    public void setUrge(boolean urge) {
        this.urge = urge;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }
}
